import MyPlugin from "../../../main";
import {Editor, MarkdownView} from "obsidian";

export function 文件快捷输入命令(this_:MyPlugin){

    // This adds an editor command that can perform some operation on the current editor instance
    this_.addCommand({
        id: 'sample-editor-command',
        name: '史锦泽的插件-自动填充内容',
        editorCallback: (editor: Editor, view: MarkdownView) => {
            editor.replaceSelection('这个是通过命令输入的内容');
        }
    });
}
